﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace ETask.Client.ViewModels
{
    public class HelpViewModel:ViewModelBase
    {

        public ICommand CancelCommand { get; }

        public event EventHandler CloseRequested;

        public HelpViewModel() 
        {
            CancelCommand = new RelayCommand(CloseWindow);
        }

        private void CloseWindow()
        {
            if (CloseRequested != null)
            {
                CloseRequested(this, EventArgs.Empty);
            }
        }
    }
}
